export const nodeTypeNames = {
  initiatingNode: 0,//发起节点
  finishNode: 1,//结束节点
  dispatchNode: 11,//派工节点
  operatorNode: 12,//经办节点
  approvalNode: 13,//审批节点
  subprocessNode: 14,//子流程节点
  autoNode: 15,//自动节点
  parallelBranchNode: 16,//并行分支节点
  pifNode: 161,//并行分支，分支条件节点
  pCNode: 162,//汇聚节点
  ifBranchNode: 17,//条件分支节点
  ifNode: 171,//条件分支，分支条件节点
  ifCNode: 172,//汇聚节点
}

export const nodeCodeArr = [0, 11, 12, 13, 14, 15, 161, 171, 1];
export const nodeNameArr = [0, 11, 12, 13, 14, 15, 1];
export const nodeFormArr = [0, 11, 12, 13, 1];
// 字段权限
export const fieldPermissionsArr = [0, 11, 13, 12,  1];
// 按钮权限
export const btnPermissionsArr = [0, 12, 1];
export const BranchNodesArr = [161,171];

// 
// 发起节点0，
export const titleSetColumnLaunch = [
  {
    title: "字段",
    dataIndex: "columnName",
    key: "columnName",
  },
  {
    title: "可见",
    dataIndex: "visible",
    key: "visible",
  },
  {
    title: "可编辑",
    dataIndex: "edit",
    key: "edit",
  },
  {
    title: "简报",
    dataIndex: "bulletin",
    key: "bulletin",
  },
]
// 结束节点1，
// 派工节点11,
export  const titleSetColumnDispatch = [
  {
    title: "字段",
    dataIndex: "columnName",
    key: "columnName",
  },
  {
    title: "可见",
    dataIndex: "visible",
    key: "visible",
  },
  {
    title: "简报",
    dataIndex: "bulletin",
    key: "bulletin",
  },
];
// 经办节点12,
export const HandlingRules = [
  {
    label: "自定义",
    value: 'custom'
  },
  {
    label: "节点派工",
    value: 'nodeDispatch'
  }
];
export const titleSetColumnHandling = [
  {
    title: "字段",
    dataIndex: "columnName",
    key: "columnName",
  },
  {
    title: "可见",
    dataIndex: "visible",
    key: "visible",
  },
  {
    title: "可编辑",
    dataIndex: "edit",
    key: "edit",
  },
]
// 审批节点13,
export const titleSetColumnApproval = [
  {
    title: "字段",
    dataIndex: "columnName",
    key: "columnName",
  },
  {
    title: "可见",
    dataIndex: "visible",
    key: "visible",
  }
]
// 优先级
export const priority = [
  {
    label: '1',
    value: '1'
  },
  {
    label: '2',
    value: '2'
  },
  {
    label: '3',
    value: '3'
  },
  {
    label: '4',
    value: '4'
  },
  {
    label: '5',
    value: '5'
  }
]

/**
 * 
 * 子流程
 * 
 * */
export const nodeFlowRules = [
  {
    label: "子流程发起后流转至下一节点",
    value: '1'
  },
  {
    label: "子流程结束后流转至下一节点",
    value: '2'
  },
]
export const nodeSubmitRules = [
  {
    label: "手动提交发起节点",
    value: '1'
  },
  {
    label: "自动提交发起节点",
    value: '2'
  },
]

/**
 * 条件关系 0与，1或
 * */
export const conditionalRelation = [
  {
    label: "与",
    value: '0'
  },
  {
    label: "或",
    value: '1'
  },
]
/**
 * 图标
 * */
export const icoList = [
  {
    nodeTypeId: 0,
    ico: "icon-star"
  },
  {
    nodeTypeId: 11,
    ico: "icon-bingxing"
  },
  {
    nodeTypeId: 12,
    ico: "icon-wangguan"
  },
  {
    nodeTypeId: 13,
    ico: "icon-bingxingwangguan"
  },
  {
    nodeTypeId: 14,
    ico: "icon-xiazai"
  },
  {
    nodeTypeId: 15,
    ico: "icon-ziliucheng"
  },
  {
    nodeTypeId: 17,
    ico: "icon-ziliucheng"
  },
  {
    nodeTypeId: 1,
    ico: "icon-end"
  }
];



export const clumn1 = [
  {
    label:'包含',
    value: 1 
  },
  {
    label:'不包含',
    value: 2 
  },
  {
    label:'等于',
    value: 3 
  },
  {
    label:'不等于',
    value: 4 
  },
  {
    label:'为空',
    value: 5 
  },
  {
    label:'不为空',
    value: 6 
  }
]
export const clumn2 = [
  {
    label:'等于',
    value: 1 
  },
  {
    label:'不等于',
    value: 2 
  },
  {
    label:'大于',
    value: 3 
  },
  {
    label:'小于',
    value: 4 
  },
  {
    label:'不大于',
    value: 5 
  },
  {
    label:'不小于',
    value: 6 
  },
  {
    label:'为空',
    value: 7 
  },
  {
    label:'不为空',
    value:'8'
  }
]
export const clumn3 = [
  {
    label:'等于',
    value:1
  },
  {
    label:'范围',
    value:2
  },
  {
    label:'为空',
    value:3
  },
  {
    label:'不为空',
    value:4
  }
]
export const clumn4 = [
  {
    label:'等于',
    value:1
  },
  {
    label:'不等于',
    value:2
  },
  {
    label:'属于',
    value: 3
  },
  {
    label:'不属于',
    value:4
  },
  {
    label:'为空',
    value:5
  },
  {
    label:'不为空',
    value:6
  }
]
export const clumn5 = [
  {
    label:'属于',
    value:1
  },
  {
    label:'不属于',
    value:''
  },
  {
    label:'包含',
    value:''
  },
  {
    label:'不包含',
    value:''
  },
  {
    label:'等于',
    value:''
  },
  {
    label:'不等于',
    value:''
  },
  {
    label:'为空',
    value:''
  },
  {
    label:'不为空',
    value:''
  }
]